﻿using MinimalistFoodStreet.BackEnd.Infrastructure.Attributes;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Response;
using MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

namespace MinimalistFoodStreet.BackEnd.Server.IServer
{
    [ProvideClassOrInterface]
    public interface ILoginServer
    {
        Account CheckLogin(int aid, string code);
        Supplier GetSupplier(int aid);
        Administrator GetAdministrator(int aid);
        Businesss GetBusiness(int aid);
        Task<ResponseApiDto> LoginByAccount(RequestLoginDto dto,string endpoint);
        Task<ResponseApiDto> LoginByPhone(RequestLoginDto dto, string endpoint);
    }
}
